public class Edge implements Comparable<Edge>{
	private StarComponent a;
	private StarComponent b;
	private double edgeWeight;
	public Edge (StarComponent a, StarComponent b, double weight) {
		this.a = a;
		this.b = b;
		this.edgeWeight = weight;
	}
	public StarComponent getA() {
		return this.a;
	}
	public StarComponent getB() {
		return this.b;
	}
	public double getEdgeWeight() {
		return this.edgeWeight;
	}
	
	@Override
	public int compareTo(Edge compareEdge) {
		double compareEdgeWeight = ((Edge) compareEdge).edgeWeight;
		
		if ((compareEdgeWeight - this.edgeWeight) > 0) {
			return 1;
		}
		else if ((compareEdgeWeight - this.edgeWeight) < 0) {
			return -1;
		}
		else {
			return 0;
		}
	}
}